@import "var";
@import "mixin";

.carousel {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;

  &-item {
    display: block;
    overflow: hidden;
    border-radius: .5rem;
    width: 87rem;

    img {
      width: 100%;
      border-radius: .5rem;
    }
  }

  &-left {
    background: $white;

    .swiper {
      border-radius: 0.5rem;
    }

  }

  &-right {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
}


//文章
.article {
  position: relative;

  &-column {
    display: flex;
    margin-bottom: 1rem;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    background: $white;
    padding: .5rem 1rem;
    line-height: 3rem;

    .title {
      font-size: 2rem;
      font-weight: 900;
      display: inline-block;
      width: 8.5rem;
    }

    ul {
      width: 76rem;
      display: flex;
      overflow-x: scroll;

      &::-webkit-scrollbar {
        width: 0;
        height: 0;
        background-color: unset;
      }

      li {
        display: inline-block;
        white-space: nowrap;

        a {
          display: inline-block;
          padding: .5rem 1rem;
          font-size: 1.5rem;
          font-weight: normal;
        }

      }
    }
  }

  &-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  &-item {
    background: $white;
    padding: 2rem;
    display: flex;
    //border-bottom: 1px solid #f5f5f5;
    margin-bottom: 1rem;

    .img {
      width: 15rem;
      height: 10.5rem;
      overflow: hidden;
      border-radius: .5rem;

      &:hover {
        img {
          transform: scale(1.1);
        }
      }

      img {
        width: 100%;
        height: 100%;
        transition: all 0.8s;

      }

    }

    .content {
      margin: 0 1rem;
      color: #323232;
      font-size: 1.8rem;
      line-height: 2rem;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .title {
        font-weight: bold;

        @include hidden-text;
      }

      .dec {
        text-indent: (1.3rem*2);
        display: block;
        height: 5rem;
        background: #fafafa;
        color: #8a8a8a;
        font-size: 1.3rem;
        line-height: 2.5rem;
        @include hidden-text;
        white-space: unset;
      }

    }


  }

  /*水平反转*/
  .row-reverse {
    flex-direction: row-reverse !important;
  }
}

/*天气禁用事件*/
#he-plugin-simple {
  pointer-events: none;
}

